/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 * @flow
 */

import React, { Component } from 'react';
import {
  Platform,
  StyleSheet,
  Text,
  View,
  ScrollView,
  TextInput,
} from 'react-native';
import SplashScreen from "react-native-splash-screen";
import { 
  Toast,
  Button,
  TabBar,
 } from "antd-mobile-rn";
import { Provider } from "react-redux";
import { AppContainer } from "../common/appContainer";
import { Navigate } from '../common/navigate';
import { store } from "../component/index";
export default class App extends Component <{}>{
  componentDidMount(){
    SplashScreen.hide()
  }
  render() {
    return (
          <Provider store={store}>
              <AppContainer ref={ref=>{
                // console.log(`设置顶部状态管理器:${ref}`)
                Navigate.SetTopLevelNavigator(ref)
              }}/>
          </Provider>

    );
  }

}

const styles = StyleSheet.create({
  container: {
    height:'100%',
    width:'100%',
    backgroundColor: 'rgba(0,0,0,0.0)',
  }
});
